{extend name="public:layout" /}
{block name="title"}请假审批{/block}
{block name="head"}{/block}
{block name="body"}
		<!--公共头部-->
		<h3 class="com_header">请假审批</h3>
		{gt name="Request.param.last_time" value="0"}

		{/gt}
		<!--司机提交报修审批-->
		<form id="form" method="post" action="/system/op/add.html?mid=12">
			<div class="weui-cells weui-cells_form x_weui_cells">
				<input type="hidden" name="leave_uid" value="{$uid}" />
				<input type="hidden" name="leave_status" value="0" />
				<input type="hidden" name="sort" value="0" />
				<div class="weui-cell x_weui_cell">
				    <div class="weui-cell__hd"><label class="weui-label">请假开始时间：</label></div>
				    <div class="weui-cell__bd">
				      <input class="weui-input datetime-picker" data-type="*" type="input" name="leave_start_time" value="">
				    </div>
				</div>
				<div class="weui-cell x_weui_cell">
				    <div class="weui-cell__hd"><label class="weui-label">请假结束时间：</label></div>
				    <div class="weui-cell__bd">
				      <input class="weui-input datetime-picker" data-type="*" type="input" name="leave_end_time" value="">
				    </div>
				</div>
				<div class="weui-cell x_weui_cell">
				    <div class="weui-cell__bd">
				      	<textarea class="weui-textarea" data-type="*" name="title" placeholder="请假原因" rows="3"></textarea>
				    </div>
				</div>
			</div>
			<div style="text-align:center;">
				<button type="submit" id="btnSub" class="tijiao">提交审批</button>
			</div>
		</form>
		<!--返回首页-->
		<div class="back_index">
			<a href="/system">
				<img class="back_img" src="/public/mobile/static/images/back1.png" />
			</a>
		</div>
{/block}
{block name="script"}
	<script type="text/javascript">
		$(function () {
            $(".datetime-picker").datetimePicker();
        });
        ajaxSubForm('#btnSub',function(res){
            if(res.code==1){
                location.href="/system/op/index.html?mid=12&tpl=sj_leave_notes&leave_status=0";
            }else{
                $.toptip(res.msg, 'error');
            }
        });
	</script>
{/block}